package com.ruoyi.sys.poster.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告对象 tb_poster
 * 
 * @author hyl
 * @date 2025-06-07
 */
public class Poster extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 广告id */
    @Excel(name = "广告id")
    private Long posterId;

    /** 管理员id */
    @Excel(name = "管理员id")
    private Long adminId;

    /** 管理员名称 */
    @Excel(name = "管理员名称")
    private String adminName;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 广告状态 */
    @Excel(name = "广告状态")
    private String status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 开始时间（用于范围查询） */
    private String beginTime02;

    /** 结束时间（用于范围查询） */
    private String endTime02;

    public void setPosterId(Long posterId) 
    {
        this.posterId = posterId;
    }

    public Long getPosterId() 
    {
        return posterId;
    }

    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public String getBeginTime02() {
        return beginTime02;
    }

    public void setBeginTime02(String beginTime02) {
        this.beginTime02 = beginTime02;
    }

    public String getEndTime02() {
        return endTime02;
    }

    public void setEndTime02(String endTime02) {
        this.endTime02 = endTime02;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("posterId", getPosterId())
            .append("adminId", getAdminId())
            .append("adminName", getAdminName())
            .append("img", getImg())
            .append("status", getStatus())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
